#ifndef POINTSTREAM_H
#define POINTSTREAM_H

#include <QObject>
#include <QPointF>

class PointStream : public QObject
{
    Q_OBJECT
public:
    static const int MAX_BUFFER_SIZE = 50000;

    explicit PointStream(QObject *parent = 0);
    void appendPoints(const QPointF &newPoint);
    QList<QPointF> getRecentPoints(int numPoints);

    int getSamplesPerSeconds() const;
    void setSamplesPerSeconds(int value);
    void discardPoints(int numPoints);


signals:

public slots:

private:
    int samplesPerSeconds = 1;
    QList<QPointF> pointList;
};

#endif // POINTSTREAM_H
